/**
 * 采购管理路由
 */
export default [
  {
    path: '/purchase',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'suppliers',
        name: 'PurchaseSuppliers',
        component: () => import('@/views/purchase/Suppliers.vue'),
        meta: { title: '供应商管理' }
      },
      {
        path: 'orders',
        name: 'PurchaseOrders',
        component: () => import('@/views/purchase/Orders.vue'),
        meta: { title: '采购订单' }
      },
      {
        path: 'order-dashboard',
        name: 'PurchaseOrderDashboard',
        component: () => import('@/views/sales/OrderDashboard.vue'),
        meta: { title: '采购订单看板' }
      },
      {
        path: 'order-approval',
        name: 'PurchaseOrderApproval',
        component: () => import('@/views/sales/OrderApproval.vue'),
        meta: { title: '采购订单审批' }
      },
      {
        path: 'order-tracking',
        name: 'PurchaseOrderTracking',
        component: () => import('@/views/sales/OrderTracking.vue'),
        meta: { title: '采购订单跟踪' }
      },
      {
        path: 'order-analysis',
        name: 'PurchaseOrderAnalysis',
        component: () => import('@/views/sales/OrderAnalysis.vue'),
        meta: { title: '采购订单分析' }
      },
      {
        path: 'receipts',
        name: 'PurchaseReceipts',
        component: () => import('@/views/purchase/Receipts.vue'),
        meta: { title: '采购入库' }
      },
      {
        path: 'returns',
        name: 'PurchaseReturns',
        component: () => import('@/views/purchase/Returns.vue'),
        meta: { title: '采购退货' }
      },
      {
        path: 'supplier-evaluation',
        name: 'PurchaseSupplierEvaluation',
        component: () => import('@/views/purchase/SupplierEvaluation.vue'),
        meta: { title: '供应商评估' }
      }
    ]
  }
]

